package com.nunbey.lingxi.activities;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.Window;
import android.webkit.WebView;
import android.webkit.WebViewClient;

import com.nunbey.lingxi.R;
import com.nunbey.lingxi.lincat.activityinit.BaseActivity;

public class AskDoctorActivity extends BaseActivity {

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        //去掉标题栏
        supportRequestWindowFeature(Window.FEATURE_NO_TITLE);
        setContentView(R.layout.activity_ask_doctor);
        WebView webView = this.findViewById(R.id.askDoctorActivity_webview);
        webView.getSettings().setJavaScriptEnabled(true);
        webView.getSettings().setDomStorageEnabled(true);
        webView.setWebViewClient(new WebViewClient());
        webView.loadUrl("https://mingyi.sogou.com/hospital/expertList/center");
    }

    public static void startAskDoctorActivity(Context context){
        context.startActivity(new Intent(context,AskDoctorActivity.class));
    }
}